//
//  ExhibitWorkCollectionCell.m
//  ArtDog
//
//  Created by dllo on 16/9/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ExhibitWorkCollectionCell.h"
#import "HomeExhibitWorkList.h"
#import "UIImageView+WebCache.h"
#import "HLMacro.h"
#import "Masonry.h"

@interface ExhibitWorkCollectionCell ()

@property (weak, nonatomic) IBOutlet UIImageView *soundImageView;

@property (weak, nonatomic) IBOutlet UIImageView *picImageView;

@property (weak, nonatomic) IBOutlet UIImageView *loveImageView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *autorLabel;

@property (weak, nonatomic) IBOutlet UILabel *viewerLabel;



@end

@implementation ExhibitWorkCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setExhibitWorkModel:(HomeExhibitWorkList *)exhibitWorkModel
{
    _exhibitWorkModel = exhibitWorkModel;
    [_picImageView sd_setImageWithURL:[NSURL URLWithString:exhibitWorkModel.worksPic] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    _nameLabel.text = exhibitWorkModel.workName;
    _autorLabel.text = exhibitWorkModel.author;
    _viewerLabel.text = [NSString stringWithFormat:@"%@", exhibitWorkModel.viewerNum];
    if (exhibitWorkModel.workAudio != nil) {
        _soundImageView.hidden = NO;
    } else {
        _soundImageView.hidden = YES;
    }
    

}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
}


@end
